package com.cares.event.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.sh.cares.dao.entity.BaseEntity;

/**
 * 流程实例运行表
 * @author xuji
 *
 */
@Entity
@Table(name="T_EVENT_EXECUTION")
public class TEventExecution extends BaseEntity implements Serializable {

	private static final long serialVersionUID = -3525760437116580463L;

	@Id
	@Column(name = "EXECUTION_ID")
	private Long executionId;
	
	//流程ID
	@Column(name = "EVENT_FLOW_ID", nullable=false)
	private Long eventFlowId;
	
	//流程类型
	@Column(name = "EVENT_CLASS", nullable=false)
	private String eventClass;

	//活动名称
	@Column(name = "ACTIVITY_NAME", nullable=false)
	private String activityName;
	
	//活动类型
	@Column(name = "ACTIVITY_TYPE", nullable=false)
	private String activityType;
	
	//活动属性
	@Column(name = "ACTIVITY_ATTRIBUTE", nullable=false)
	private String activityAttribute;
	
	//当前状态
	@Column(name = "TASK_STATUS")
	private String taskStatus;
	
	//前一个任务执行完成后的输出结果
	@Column(name = "LAST_RESULT")
	private String lastResult;
	
	public Long getExecutionId() {
		return executionId;
	}

	public void setExecutionId(Long executionId) {
		this.executionId = executionId;
	}


	public Long getEventFlowId() {
		return eventFlowId;
	}

	public void setEventFlowId(Long eventFlowId) {
		this.eventFlowId = eventFlowId;
	}

	public String getEventClass() {
		return eventClass;
	}

	public void setEventClass(String eventClass) {
		this.eventClass = eventClass;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getActivityType() {
		return activityType;
	}

	public void setActivityType(String activityType) {
		this.activityType = activityType;
	}

	public String getActivityAttribute() {
		return activityAttribute;
	}

	public void setActivityAttribute(String activityAttribute) {
		this.activityAttribute = activityAttribute;
	}

	public String getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(String taskStatus) {
		this.taskStatus = taskStatus;
	}

	public String getLastResult() {
		return lastResult;
	}

	public void setLastResult(String lastResult) {
		this.lastResult = lastResult;
	}

	@Override
	public Serializable getId() {
		return this.executionId;
	}
	
}
